// 静态路由配置
// 书写格式与动态路由格式一致，全部经由框架统一转换
// 比较动态路由在meta中多加入了role角色权限，为数组类型。一个菜单是否有权限显示，取决于它以及后代菜单是否有权限。
// routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
// 示例如下

const routes = [
	{
		"name": "home",
		"path": "/home",
		"meta": {
			"title": "首页",
			"icon": "el-icon-eleme-filled",
			"type": "menu"
		},
		"children": [
			// {
			// 	"name": "dashboard",
			// 	"path": "/dashboard",
			// 	"meta": {
			// 		"title": "控制台",
			// 		"icon": "el-icon-menu",
			// 		"affix": true
			// 	},
			// 	"component": "home"
			// },
			{
				"name": "userCenter",
				"path": "/home/usercenter",
				"meta": {
					"title": "账户信息",
					"icon": "el-icon-user",
				},
				"component": "home/userCenter"
			},
			// {
			// 	"name": "myFile",
			// 	"path": "/home/myFile",
			// 	"meta": {
			// 		"title": "我的文件",
			// 		"icon": "el-icon-user",
			// 	},
			// 	"component": "home/myFile"
			// },
			//用户导入
			{
				"name": "userUserImport",
				"path": "/user/user_import",
				"component": "user/user_import",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "导入用户",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			{
				"name": "serviceOrderImport",
				"path": "/service_order/import",
				"component": "service_order/import",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "批量下单",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			{
				"name": "serviceOrderDetail",
				"path": "/service_order/detail",
				"component": "service_order/detail",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "订单详情",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			{
				"name": "companyOrderDetail",
				"path": "/company/order/detail",
				"component": "company/order/detail",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "查看订单",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			{
				"name": "companyOrderImportUser",
				"path": "/company/order/import_user",
				"component": "company/order/import_user",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "导入用户",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			//问诊单
			{
				"name": "patientOrderDetail",
				"path": "/patient/patient_order_detail",
				"component": "patient/patient_order_detail",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "问诊单明细",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			//绿通问诊单详情
			{
				"name": "patientGreenOrderDetail",
				"path": "/patient/patient_green_order_detail",
				"component": "patient/patient_green_order_detail",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "绿通问诊单详情",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
			//服务卡列表
			{
				"name": "serviceCardIndex",
				"path": "/service_card/index",
				"component": "service_card/index",
				"key": "service_card_index",
				props: route => ({query: route.query.q}),
				"meta": {
					"title": "服务卡列表",
					"icon": "el-icon-eleme-filled",
					"type": "menu",
					"hidden": true,
					"hiddenBreadcrumb": true
				},
			},
		]
	},
]

export default routes;
